<?php
class Trigger_News{

	static public function onAfterAdd(Db_Object $object){
		self::clearBlockCache();
	}
	static public function onBeforeUpdate(Db_Object $object){
		self::clearBlockCache();
	}
	static public function onAfterDelete(Db_Object $object){
		self::clearBlockCache();
	}
	static public function clearBlockCache(){
		$cache = Application::dataCache();
		if($cache)
			$cache->remove(Block_News::CACHE_KEY);	
	}
}